<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="org.thunms.demo.test.entity.Products"%>
<%@ page import="java.util.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>详情页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link href="/css/css.css" rel="stylesheet" type="text/css" />
	

  </head>
  
  <body>
    <div id="logo"> 故 乡 味 </div>
    <div id="didian">
        <div id="didian1"><%=session.getAttribute("didian") %></div>
        <div id="didian2"><a href="/city.jsp">[切换地点]</a></div>
    </div>
    <div id="daohang">
       <div id="daohang_name">
          <ul>
              <li id="daohang_2"> <a href="/index.do">首页</a></li>
              <li id="daohang_2"> <a href="/detail.do?type=meishi&didian=${endidian}">美食</a></li>
              <li id="daohang_2"> <a href="/detail.do?type=techan&didian=${endidian}">特产</a></li>
              <li id="daohang_2"> <a href="/detail.do?type=lvyou&didian=${endidian}">旅游</a></li>   
         </ul>
       </div>
    </div>
    <div id="center">
    <%List list = (List) session.getAttribute("prods");
					Iterator it = list.iterator();
					while (it.hasNext()) {
					Products temp = (Products) it.next();
				%> 
    
    
    
    <div id="product">
       <div id="product_name"><a href="<%=temp.getUrl()%>"><%=temp.getReason()%></a></div>
       <div id="product_pic"><a href="<%=temp.getUrl()%>"><img src="<%=temp.getPicture()%>" /></a></div>
       <div id="product_price">
           <div id="product_price1"> ￥<%=temp.getPrice()%> </div>
           <div id="product_price2"><a href="<%=temp.getUrl()%>"><img src="/images/buy.jpg"/></a></div>
       </div>
       <div id="product_share"></div>
    </div>
    
   <%} %>
    </div>
    
    
  </body>
</html>
